<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="referrer" content="no-referrer"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .box{
            width: 1200px;
            margin: 0 auto;
        }
        ul,li{
            list-style: none;
        }
        ul{
            background-color: pink;
            width: 260px;
            height: 200px;
            margin-left: 20px;
            float: left;
        }
        ul li{
            border: 1px solid gray;
        }
        ul li .imgBox{
            width: 260px;
        }
        img{
            width: 100%;
            height: 100%;
            display: block;
        }
        ul li .description{
            padding: 20px;
            font-size: 12px;
        }
        ul li .description .wenyuan{
            display: flex;
            align-items: center;
        }
        ul li .description .wenyuan .left{
            width: 25px;
            height: 25px;
            border-radius: 50%;
            overflow: hidden;
            margin-right: 10px;
        }
    </style>
</head>
<body>
    <div class="box">
        <ul>
            <li>
                <div class="imgBox">
                    <img src="https://c-ssl.dtstatic.com/uploads/blog/202206/16/20220616062559_8272c.thumb.400_0.jpg" alt="">
                </div>
                <div class="description">
                    <p>手功</p>
                    <div class="wenyuan">
                        <div class="left">
                            <img src="https://c-ssl.dtstatic.com/uploads/people/202006/24/20200624084926_nE5aA.thumb.100_100_c.jpeg" alt="">
                        </div>
                        <div class="right">
                            <div class="top">肖战1005号</div>
                            <div class="bottom">发布到  默认专辑</div>
                        </div>
                    </div>
                </div>
            </li>
        </ul>
        <ul></ul>
        <ul></ul>
        <ul></ul>
    </div>



    <script>
        // https://www.duitang.com/napi/blog/list/by_filter_id/?
        // include_fields=top_comments%2Cis_root%2Csource_link%2Citem%2Cbuyable%2Croot_id%2Cstatus%2Clike_count%2Csender%2Calbum%2Creply_count&filter_id=%E6%89%8B%E5%B7%A5DIY&start=24&_=1655363994353
        let start = 0;
        getData();
        function getData(){
            const xhr = new XMLHttpRequest()
            xhr.open("GET",`/dt?include_fields=top_comments%2Cis_root%2Csource_link%2Citem%2Cbuyable%2Croot_id%2Cstatus%2Clike_count%2Csender%2Calbum%2Creply_count&filter_id=%E6%89%8B%E5%B7%A5DIY&start=${start}&_=1655364636042`);
            xhr.send();
            xhr.onload = function(){
                console.log(JSON.parse(xhr.responseText));
            }
        }


    </script>
</body>
</html>